bitkeeper revision 1.1019 (40de8639yjRdZbQS_JrcVsHsaPIwZw)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Sun, 27 Jun 2004 08:32:57 +0000 (08:32 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Sun, 27 Jun 2004 08:32:57 +0000 (08:32 +0000)
smp.h, irq.h, config.h, sched_bvt.c, setup.c, pci-pc.c:
  Fix compile errors for latest GCC (3.4.0).

xen/arch/x86/pci-pc.c
xen/arch/x86/setup.c
xen/common/sched_bvt.c
xen/include/asm-x86/config.h
xen/include/asm-x86/irq.h
xen/include/xen/smp.h

index 488fab91727e03f242428333b5b8846a8b99e65d..575c3312f285930c5affa35fb037360b4680b9c9 100644 (file)
@@ -1020,12 +1020,12 @@ struct irq_routing_table * __devinit pcibios_get_irq_routing_table(void)
                "xor %%ah, %%ah\n"
                "1:"
                : "=a" (ret),
-                 "=b" (map),
-                 "+m" (opt)
+                 "=b" (map)
                : "0" (PCIBIOS_GET_ROUTING_OPTIONS),
                  "1" (0),
-                 "D" ((long) &opt),
-                 "S" (&pci_indirect));
+                 "D" (&opt),
+                 "S" (&pci_indirect)
+                : "memory");
        DBG("OK  ret=%d, size=%d, map=%x\n", ret, opt.size, map);
        if (ret & 0xff00)
                printk(KERN_ERR "PCI: Error %02x when fetching IRQ routing table.\n", (ret >> 8) & 0xff);
index 2e450497d46ee618c1e580d0e1d49cc3ef528425..ec803472fcb75ae5e0c02fb3f9c7208a20c4fd03 100644 (file)
 #include <asm/domain_page.h>
 #include <asm/pdb.h>
 
+extern void init_IRQ(void);
+extern void trap_init(void);
+extern void time_init(void);
+extern void ac_timer_init(void);
+extern void initialize_keytable();
+extern int opt_nosmp, opt_watchdog, opt_noacpi;
+extern int opt_ignorebiostables, opt_noht;
+extern int do_timer_lists_from_pit;
+
 char ignore_irq13;             /* set if exception 16 works */
 struct cpuinfo_x86 boot_cpu_data = { 0, 0, 0, 0, -1 };
 
@@ -96,8 +105,6 @@ void __init get_cpu_vendor(struct cpuinfo_x86 *c)
 
 static void __init init_intel(struct cpuinfo_x86 *c)
 {
-    extern int opt_noht, opt_noacpi;
-
     /* SEP CPUID bug: Pentium Pro reports SEP but doesn't have it */
     if ( c->x86 == 6 && c->x86_model < 3 && c->x86_mask < 3 )
         clear_bit(X86_FEATURE_SEP, &c->x86_capability);
@@ -300,13 +307,6 @@ unsigned long pci_mem_start = 0x10000000;
 
 void __init start_of_day(void)
 {
-    extern void init_IRQ(void);
-    extern void trap_init(void);
-    extern void time_init(void);
-    extern void ac_timer_init(void);
-    extern void initialize_keytable();
-    extern int opt_nosmp, opt_watchdog, opt_noacpi, opt_ignorebiostables;
-    extern int do_timer_lists_from_pit;
     unsigned long low_mem_size;
     
 #ifdef MEMORY_GUARD
index afc0a6e5a6ceaca997683f001a32f05fde804e61..6ea9503c70ae9bf01a6e99a208eebe954859290f 100644 (file)
@@ -96,7 +96,8 @@ static void __calc_evt(struct bvt_dom_info *inf)
  */
 int bvt_alloc_task(struct domain *p)
 {
-    if ( (BVT_INFO(p) = kmem_cache_alloc(dom_info_cache)) == NULL )
+    p->sched_priv = kmem_cache_alloc(dom_info_cache);
+    if ( p->sched_priv == NULL )
         return -1;
     
     return 0;
@@ -410,8 +411,8 @@ int bvt_init_scheduler()
 
     for ( i = 0; i < NR_CPUS; i++ )
     {
-        CPU_INFO(i) = kmalloc(sizeof(struct bvt_cpu_info));
-        if ( CPU_INFO(i) == NULL )
+        schedule_data[i].sched_priv = kmalloc(sizeof(struct bvt_cpu_info));
+        if ( schedule_data[i].sched_priv == NULL )
         {
             printk("Failed to allocate BVT scheduler per-CPU memory!\n");
             return -1;
index 473f69fd35459287a6ce5001f4673d33ee9c4858..053b0ef56ca4da8e106759fd6403f686b46c7d66 100644 (file)
@@ -62,7 +62,6 @@
 #define SLACK_DOMAIN_MEM_KILOBYTES 2048
 
 /* Linkage for x86 */
-#define FASTCALL(x)     x __attribute__((regparm(3)))
 #define asmlinkage        __attribute__((regparm(0)))
 #define __ALIGN .align 16,0x90
 #define __ALIGN_STR ".align 16,0x90"
index 36bd17bd03d71495ebc155b8413e1bb59293a41c..7c5212e50f52e0fb43f03cf6ef3b01ad2b64cabb 100644 (file)
@@ -66,7 +66,7 @@ extern void enable_8259A_irq(unsigned int irq);
 extern int i8259A_irq_pending(unsigned int irq);
 extern void make_8259A_irq(unsigned int irq);
 extern void init_8259A(int aeoi);
-extern void FASTCALL(send_IPI_self(int vector));
+extern void send_IPI_self(int vector);
 extern void init_VISWS_APIC_irqs(void);
 extern void setup_IO_APIC(void);
 extern void disable_IO_APIC(void);
index b0f39112ced3d26b1b66a58c738624b7c89ba40b..d7f71b6faefdca9c9179ff400907ce7c4b99e3f1 100644 (file)
@@ -22,7 +22,7 @@
  */
 extern void smp_send_stop(void);
 
-extern void FASTCALL(smp_send_event_check_mask(unsigned long cpu_mask));
+extern void smp_send_event_check_mask(unsigned long cpu_mask);
 #define smp_send_event_check_cpu(_cpu) smp_send_event_check_mask(1<<(_cpu))
 
 /*